/* GEARMedula.hh -- Objeto principal
 *
 * Copyright (C) 2008, Diogo F. S. Ramos <diogo.ramos@usp.br>
 * GEAR - Grupo de Estudos Avançados em Robótica
 * <http://www.sel.eesc.usp.br/gear>
 *
 * This file is part of GEARMedula.
 * 
 * GEARMedula is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, version 3 of the
 * License.
 * 
 * GEARMedula is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see
 * <http://www.gnu.org/licenses/>.
 */

#ifndef GEARMEDULA_HH_
#define GEARMEDULA_HH_

#include "GMServer.hh"
#include "Monitor.hh"
#include "Control.hh"

class Display;
class GMSim;
class CommLineArgs;

/** Classe principal que contêm todas as outras.

 */
class GEARMedula
{
    /** Objeto servidor que ficará escutando por conexões. */
    GMServer server_;
    /** Objeto que registrará os dados enviados ou pela Visão ou pela
        Simulação. */
    Monitor monitor_;
    /** Objeto Control. */
    Control control_;
    /** Ponteiro para objeto Display. */
    Display * display_;
    /** Ponteiro para objeto GMSim */
    GMSim * sim_;
    /** Informa se o display esta habilitado ou não. */
    bool display_enable_;
public:
    GEARMedula();
    ~GEARMedula();
    void Init( CommLineArgs line_args );
    void Run();
};

#endif	// GEARMEDULA_HH_
